<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData: form}" showCompany companyType="COMPANY_AAB000_EXACT" cpTagType="COMPANY_SIMPLE_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
            <epl-userMessage dataType="company" idCount="2" functionId="company" :panel="panel">
                <epl-insurance functionId="company" :panel="panel"></epl-insurance>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入单位基本变更信息</ep-title>
                <el-form :model="form" :rules="rules" ref="form">
                       <el-row :gutter="10">
                                <ep-input colspan="8" label="单位编码" name="aab001" :property="form.aab001"
                                          placeholder="请输入单位编码" p="H"
                                          :datas="{formData: form}"></ep-input>
                                <ep-input colspan="8" label="统一信用代码" name="bab010" :property="form.bab010"
                                          placeholder="请输入统一信用代码" p="H"
                                          :datas="{formData: form}"></ep-input>
                                <ep-input colspan="8" label="单位名称" name="aab069" :property="form.aab069"
                                          placeholder="请输入单位名称" p="H"
                                          :datas="{formData: form}"></ep-input>
                        </el-row>
                    <el-row :gutter="10">
                                <ep-input colspan="8" label="组织机构代码" name="aab003" :property="form.aab003"
                                          placeholder="请输入组织机构代码" p="H"
                                          :datas="{formData: form}"></ep-input>
                                <ep-input colspan="8" label="税号" name="aab030" :property="form.aab030"
                                          placeholder="请输入税号" p="H"
                                          :datas="{formData: form}"></ep-input>
                                <ep-input colspan="8" label="单位管理码" name="aab999" :property="form.aab999"
                                          placeholder="请输入单位管理码" p="H"
                                          :datas="{formData: form}"></ep-input>
                            </el-row>
                        <el-row :gutter="10">
                                <ep-select colspan="8" label="单位性质" name="aab019" :property="form.aab019"
                                           placeholder="请输入单位性质" codetype="AAB019" p="H"
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="经济类型" name="aab020" :property="form.aab020"
                                           placeholder="请输入经济类型" codetype="AAB020" p="H" 
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="隶属关系" name="aab021" :property="form.aab021"
                                           placeholder="请输入隶属关系" codetype="AAB021" p="H" 
                                           :datas="{formData:form}"></ep-select>
                            </el-row>
                         <el-row :gutter="10">
                                <ep-select colspan="8" label="主管部门" name="aab023" :property="form.aab023"
                                           placeholder="请输入主管部门" codetype="AAB023" p="H"
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="所属行业" name="aab022" :property="form.aab022"
                                           placeholder="请输入所属行业" codetype="AAB022" p="H"
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="行业风险类别" name="aaa149" :property="form.aaa149"
                                           placeholder="请输入行业风险类别" codetype="AAA149" p="H"
                                           :datas="{formData:form}"></ep-select>
                            </el-row>
                        <el-row :gutter="10">
                               <ep-select colspan="8" label="执照（证）种类"  name="aab006" :property="form.aab006"
                                           placeholder="请选择执照（证）种类" codetype="AAB006" p="E" 
                                           :datas="{formData:form}"></ep-select>
                               <ep-input colspan="8" label="执照（证）号码" name="aab007" :property="form.aab007"
                                          placeholder="请输入执照（证）号码" p="E"
                                          :datas="{formData:form}"></ep-input>
                                <ep-date colspan="8" label="成立日期" name="aae047" :property="form.aae047"
                                        placeholder="请选择成立日期" p="E" :datas="{formData: form}"></ep-date>
                                 
                            </el-row>
                         <el-row :gutter="10">
                                 <ep-date colspan="8" label="发照（证）日期" name="aab008" :property="form.aab008"
                                        placeholder="请选择发照（证）日期" p="E" :datas="{formData: form}"></ep-date>
                                  <ep-input colspan="8" label="执照（证）有效期限" name="aab009" :property="form.aab009"
                                          placeholder="请输入执照（证）有效期限" p="E"
                                          :datas="{formData:form}"></ep-input>
                                   <ep-input colspan="8" label="结算单位编码" name="aab001s" :property="form.aab001s"
                                          placeholder="请输入结算单位编码" p="E" isChange
                                          :datas="{formData: form}"></ep-input>                             
                            </el-row>
                         <el-row :gutter="10">
                            <ep-input colspan="8" label="法定代表人姓名" name="aab013" :property="form.aab013" rules="this.$rules.test_noBlank"
                                          placeholder="请输入法定代表人姓名" p="R"
                                          :datas="{formData:form}" isChange></ep-input>
                                <ep-select colspan="8" label="法定代表人证件类型" name="aac058" codetype="AAC058" :property="form.aac058"
                                          placeholder="请选择证件类型" p="E"
                                          :datas="{formData:form}" isChange></ep-select>
                                <ep-input colspan="8" label="法定代表人证件号码" name="aac147" :property="form.aac147"
                                          placeholder="请输入证件号码" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                        </el-row>
                        <el-row :gutter="10">                             
                                
                                <ep-input colspan="8" label="单位电话" name="aae005" :property="form.aae005" rules="this.$rules.telephone"
                                          placeholder="请输入单位电话" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                                <ep-input colspan="8" label="单位手机号码" name="aac067" :property="form.aac067" rules="this.$rules.mobile"
                                          placeholder="请输入单位手机号码" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                        </el-row>
                         <el-row :gutter="10">                                                             
                                <ep-input colspan="8" label="单位电子邮箱" name="aae159" :property="form.aae159" rules="this.$rules.isEmail"
                                          placeholder="请输入单位电子邮箱" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                                 <ep-input colspan="8" label="单位邮编" name="aae007" :property="form.aae007" rules="this.$rules.postcode"
                                          placeholder="请输入单位邮编" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                                <ep-select colspan="8" label="行政区划" name="aab301" codetype="AAB301" :property="form.aab301" rules="this.$rules.test_noBlank"
                                          placeholder="请选择行政区划" p="R,D"
                                          :datas="{formData:form}" isChange></ep-select>
                            </el-row>
                        <el-row :gutter="10">
                                <ep-select colspan="8"  label="登记注册所在地址" name="bae014" :property="form.bae014"
                                           placeholder="请选择省" codetype="BAE007" p="E"
                                           :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae015" :property="form.bae015"
                                           placeholder="请选择市" codetype="BAE008ZC" p="E" 
                                           :datas="{formData: form}" isChange isCodeType
                                            ></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae016" :property="form.bae016"
                                           placeholder="请选择区县" codetype="BAE009ZC" p="E" 
                                           :datas="{formData: form}"></ep-select>

                                <ep-input colspan="8" label="" label-width="0" name="bae017" :property="form.bae017"
                                          placeholder="请输入详细地址" p="E"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>

                             <el-row :gutter="10">
                                <ep-select colspan="8" label="通讯地址" name="bae011" :property="form.bae011"
                                            placeholder="请选择省" codetype="BAE007" p="E"  :datas="{formData:form}" isChange isCodeType></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae012" :property="form.bae012"
                                            placeholder="请选择市" codetype="BAE008" p="E" :datas="{formData: form}" isChange isCodeType
                                            ></ep-select>
                                <ep-select colspan="4" label="" label-width="0" name="bae013" :property="form.bae013" 
                                            placeholder="请选择区县" codetype="BAE009" p="E" :datas="{formData: form}"
                                            ></ep-select>
                                <ep-input colspan="8" label="" label-width="0" name="aae006" :property="form.aae006"
                                            placeholder="请输入详细地址" p="E" :datas="{formData:form}"></ep-input>
                            </el-row>

                       
                        <ep-title>请输入联系人信息</ep-title>
                        <el-row :gutter="10">                             
                                 <ep-input colspan="8" label="联系人姓名" name="aae004" :property="form.aae004" 
                                          placeholder="请输入联系人姓名" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                                <ep-select colspan="8" label="联系人证件类型" name="bae565" codetype="BAE565" :property="form.bae565" 
                                          placeholder="请选择证件类型" p="E"
                                          :datas="{formData:form}" isChange></ep-select>
                                <ep-input colspan="8" label="联系人证件号码" name="bae564" :property="form.bae564"  
                                          placeholder="请输入证件号码" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                            </el-row>
                         <el-row :gutter="10">                             
                                 <ep-input colspan="8" label="联系人电话" name="aae005" :property="form.aae005" rules="this.$rules.telephone"
                                          placeholder="请输入电话" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                                <ep-input colspan="8" label="联系人手机号码" name="aae013" :property="form.aae013" rules="this.$rules.mobile"
                                          placeholder="请输入手机号码" p="E"
                                          :datas="{formData:form}" isChange></ep-input>
                                
                            </el-row>

                <ep-title>请输入银行变更信息</ep-title>
                         <el-row>
                         <ep-input colspan="8" label="开户行名称" name="aaz003" :property="form.aaz003" rules="this.$rules.test_noBlank"
                                          placeholder="请输入开户行名称" p="H"
                                          :datas="{formData:form}"></ep-input>
                                <ep-select colspan="8" label="银行账号用途" name="aaa082" :property="form.aaa082" rules="this.$rules.test_noBlank"
                                           placeholder="请选择银行账号用途" p="R" codetype="AAA082"
                                           :datas="{formData:form}"></ep-select>
                                <ep-select colspan="8" label="银行行别" name="aaf200" :property="form.aaf200" rules="this.$rules.test_noBlank"
                                           placeholder="请选择银行行别" p="R" codetype="AAF200"
                                           :datas="{formData:form}"></ep-select>
                                 <epl-search-bank colspan="8" label="开户行行号" name="aaf002" :property="form.aaf002" placeholder="请选择开户行行号" 
                                   p="R" :datas="{formData: form}" codetype="AAF200" bankName="aaf200" show rules="this.$rules.test_noBlank"></epl-search-bank>
                            </el-row>

                            <el-row>
                                <ep-input colspan="8" label="开户行名称" name="bac049" :property="form.bac049" rules="this.$rules.test_noBlank"
                                          placeholder="请输入开户行名称" p="R,D"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行开户名" name="aae009" :property="form.aae009" rules="this.$rules.test_noBlank"
                                          placeholder="请输入银行开户名" p="R"
                                          :datas="{formData:form}"></ep-input>
                                <ep-input colspan="8" label="银行账号" name="aae010" :property="form.aae010" rules="this.$rules.test_noBlank"
                                          placeholder="请输入银行账号" p="R"
                                          :datas="{formData:form}"></ep-input>
                            </el-row>
                             </el-form>
                <ep-title>请输入险种变更信息</ep-title>
                <el-row :gutter="10">
                            <ep-table :data="tableData" :pager="20" rowDbClick  >
                                <!--<el-table-column type="selection" width="55"></el-table-column>-->
                                <ep-table-column colspan="8" editor="select" name="aae140" codetype="AAE140" header="参保险种"></ep-table-column>
                                <ep-table-column editor="select" edited name="aaz289" codetype="AAZ289" header="征缴档次"></ep-table-column>
                                <ep-table-column editor="select" edited name="aab033" codetype="AAB033" header="征收方式"></ep-table-column>
                            </ep-table>
                        </el-row>
                        <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                       :datas="{formData: form,tableData:tableData,panel:panel}" name="保存"></ep-saveButton>
                    </el-row> 
            </el-card>
        </el-main>
    </el-main>
</template>


<script src="../js/CpInsureModifyJS.js"></script>
